<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      th:replace="fragments/layout(title='部门设置-编辑',jsPaths='/static/js/personnel/department/add.js')">
<div class="right" th:fragment="right">
    <!--面包屑-->
    <div class="breadcrumb layui-bg-gray">
                <span class="layui-breadcrumb" lay-separator=">">
                    <a th:href="@{/}">首页</a>
                    <a href="">人事管理</a>
                    <a href="/department">部门设置</a>
                    <a><cite>编辑</cite></a>
                </span>
    </div>

    <!--主体内容区-->
    <div class="form-content layui-container">
        <form class="layui-form" th:action="@{/department/update}" method="post">

            <div class="layui-form-item">
                <label class="layui-form-label must">部门名称</label>
                <div class="layui-input-block">
                    <input type="text" name="name" th:value="${department.name}"  maxlength="50" lay-verify="required" placeholder="请输入部门名称" autocomplete="off" class="layui-input">
                    <input type="hidden" name="id" th:value="${department.id}">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">部门简介</label>
                <div class="layui-input-block">
                    <textarea  name="intro" th:text="${department.intro}" maxlength="1000" placeholder="请输入部门简介" autocomplete="off" class="layui-textarea"></textarea>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-input-block">
                    <button class="layui-btn  layui-btn-normal" lay-submit lay-filter="submitBtn">保存</button>
                    <a href="/department" class="layui-btn layui-btn-primary">返回</a>
                </div>
            </div>

        </form>

    </div>
</div>
</html>